package cn.wolfcode.wolf2w.business.api;


import cn.wolfcode.wolf2w.business.api.domain.NoteEs;
import cn.wolfcode.wolf2w.business.api.factory.RemoteNoteEsfallbackFactory;
import cn.wolfcode.wolf2w.common.core.constant.SecurityConstants;
import cn.wolfcode.wolf2w.common.core.constant.ServiceNameConstants;
import cn.wolfcode.wolf2w.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "RemoteNoteEsService", name = ServiceNameConstants.SEARCH_SERVICE, fallbackFactory = RemoteNoteEsfallbackFactory.class)
public interface RemoteNoteEsService {
    //初始化
    @PostMapping("/search/initNoteEs")
    R<?> initNoteEs(@RequestBody NoteEs noteEs, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
